-- MySQL dump 10.13  Distrib 5.5.25, for osx10.6 (i386)
--
-- Host: localhost    Database: vhome
-- ------------------------------------------------------
-- Server version	5.5.25

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `access`
--

DROP TABLE IF EXISTS `access`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `access` (
  `clientid` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `scope` varchar(1000) NOT NULL,
  `valid` int(11) DEFAULT '1',
  `issuedatCode` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `expiresCode` int(11) DEFAULT '86400',
  `accesstoken` varchar(100) DEFAULT NULL,
  `refreshtoken` varchar(100) DEFAULT NULL,
  `issuedatToken` timestamp NULL DEFAULT NULL,
  `expiresToken` int(11) DEFAULT '3600',
  PRIMARY KEY (`clientid`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `access`
--

LOCK TABLES `access` WRITE;
/*!40000 ALTER TABLE `access` DISABLE KEYS */;
INSERT INTO `access` VALUES ('123912','a1c8879ba0b38b7dcdd311c11975f12','ListAllClasses',0,'2012-06-21 22:18:18',3600,'90971550aa911aba6d684789bcab952e','47eb4bc336fab4d2066aa6c73b3a3ab','2012-06-22 02:13:48',86400),('1x3mxt2z0kzg8','53a8ff158d968ccbbd2caab0ddba13d9','ListAllClasses',0,'2012-06-22 08:59:08',86400,'cc49a02d9a7d8aff1d4e6dcb7fe1c6e','7f978aee7a44e083de90fbbbad5cc2b8','2012-06-22 09:02:53',3600),('KJH&^%%#H','code','ListAllClasses',1,'2012-02-02 14:11:02',3600,'at2','refreshtoken2',NULL,86400);
/*!40000 ALTER TABLE `access` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `class`
--

DROP TABLE IF EXISTS `class`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `class` (
  `cid` int(11) NOT NULL AUTO_INCREMENT,
  `cname` varchar(50) NOT NULL,
  `descriptor` varchar(100) DEFAULT NULL,
  `rating` float DEFAULT NULL,
  PRIMARY KEY (`cid`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `class`
--

LOCK TABLES `class` WRITE;
/*!40000 ALTER TABLE `class` DISABLE KEYS */;
INSERT INTO `class` VALUES (1,'heating','poowiowefi pwoe fiwopeif wefwklehfwekfhw efrg',2004.23),(2,'lights','kjeherkjhergergrg ewklehfwekfhw efrg',104.23),(3,'ev','kjeherkjhergergrg ewklehfwekfhw efrg',3504.23),(4,'dishwasher','jherhhjerghjer ejrjergj',3453.34),(5,'dishwasher','jherhhjerghjer ejrjergj',3453.34),(6,'dishwasher','jherhhjerghjer ejrjergj',3453.34),(7,'dishwasher','jherhhjerghjer ejrjergj',NULL),(8,'dishwasher','jherhhjerghjer ejrjergj',112.123),(9,'dryer','jherhhjerghjer ejrjergj',NULL),(10,'dryer','jherhhjerghjer ejrjergj',NULL),(11,'tableLamp','kjwehwejlf weifh welj fhwef ',1212.12),(12,'deskLamp','kjwehwejlf weifh welj fhwef ',4212.12),(13,'kitchenLamp','kjwehwejlf weifh welj fhwef ',4212.12),(14,'wonderful class','wwkjefhwejfh wkjwhwkejhgweg',12.21);
/*!40000 ALTER TABLE `class` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `client`
--

DROP TABLE IF EXISTS `client`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `client` (
  `name` varchar(100) NOT NULL,
  `url` varchar(100) NOT NULL,
  `description` varchar(200) DEFAULT NULL,
  `redirecturi` varchar(200) NOT NULL,
  `clientid` varchar(100) NOT NULL,
  `issuedat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`clientid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `client`
--

LOCK TABLES `client` WRITE;
/*!40000 ALTER TABLE `client` DISABLE KEYS */;
INSERT INTO `client` VALUES ('client no. 1','http://www.google.com','searcher','http://www.google.com/handler','123912','2012-06-20 21:02:14'),('balle balle','http://local.com','ab dce','http://loaef.com','1x3mxt2z0kzg8','2012-06-22 08:56:59'),('new client','www.client.com','abcd','redirector','63hbyq02o9hl','2012-06-26 16:37:39'),('sample client','http://clientexample.com','simple client example','www.example.com/handler','KJH&^%%#H','2012-06-20 03:52:47'),('name','url','desc','redir','KJHKU&*Y&','2012-06-20 03:50:00');
/*!40000 ALTER TABLE `client` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `control`
--

DROP TABLE IF EXISTS `control`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `control` (
  `cid` int(11) NOT NULL,
  `oid` int(11) NOT NULL,
  `status` int(11) DEFAULT '0',
  `level` double DEFAULT '0',
  `last` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`cid`,`oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `control`
--

LOCK TABLES `control` WRITE;
/*!40000 ALTER TABLE `control` DISABLE KEYS */;
INSERT INTO `control` VALUES (1,4,0,0,'2012-06-23 02:20:09'),(1,5,0,0,'2012-06-23 02:34:45'),(2,1,0,0,'2012-06-14 02:13:00'),(2,2,0,0,'2012-06-14 02:13:17'),(3,1,0,0,'2012-06-23 03:04:14'),(9,1,0,0,'2012-06-23 02:35:31'),(9,2,0,0,'2012-06-23 02:35:51'),(9,3,0,0,'2012-06-23 02:36:15'),(9,4,0,0,'2012-06-23 02:40:26'),(9,5,0,0,'2012-06-23 02:40:31'),(9,6,0,0,'2012-06-23 02:40:47'),(9,7,0,0,'2012-06-23 02:40:56'),(9,8,0,0,'2012-06-23 02:43:28'),(9,9,0,0,'2012-06-23 02:43:34'),(9,10,0,0,'2012-06-23 02:43:58'),(9,11,0,0,'2012-06-23 02:45:27'),(9,12,0,0,'2012-06-23 02:50:42'),(9,13,0,0,'2012-06-23 02:52:19'),(9,14,0,0,'2012-06-23 02:53:15'),(9,15,0,0,'2012-06-23 02:53:55'),(9,16,0,0,'2012-06-23 03:01:59'),(9,17,0,0,'2012-06-23 03:02:25'),(9,18,0,0,'2012-06-23 03:03:50');
/*!40000 ALTER TABLE `control` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `object`
--

DROP TABLE IF EXISTS `object`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `object` (
  `cid` int(11) NOT NULL,
  `oid` int(11) NOT NULL,
  `oname` varchar(50) NOT NULL,
  `descriptor` varchar(100) DEFAULT NULL,
  `granularity` int(11) DEFAULT '0',
  `symbol` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`cid`,`oid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `object`
--

LOCK TABLES `object` WRITE;
/*!40000 ALTER TABLE `object` DISABLE KEYS */;
INSERT INTO `object` VALUES (1,1,'bedroom','lkrh ewrlkghe rgthe quick brown fox jumps over the lazy dog ',2000,'W'),(1,2,'kitchen','lkrh ewrlkghe rgthe quick brwefwefwfweown fox jumps over the lazy dog ',3000,'W'),(1,3,'dryer','jherhhjerghjer ejrjergj',0,NULL),(1,4,'kerhwekfhwef','wefkjwehewj',0,NULL),(1,5,'kerhwekfhwef','wefkjwehewj',0,NULL),(2,1,'dryer','jherhhjerghjer ejrjergj',0,NULL),(2,2,'dryer','jherhhjerghjer ejrjergj',0,NULL),(3,1,'kerhwekfhwef',NULL,0,''),(9,1,'kerhwekfhwef',NULL,0,NULL),(9,2,'kerhwekfhwef',NULL,0,'$'),(9,3,'kerhwekfhwef',NULL,0,NULL),(9,4,'kerhwekfhwef',NULL,0,NULL),(9,5,'kerhwekfhwef',NULL,0,NULL),(9,6,'kerhwekfhwef','kjhrwjkehfwef',0,NULL),(9,7,'kerhwekfhwef','kjhrwjkehfwef',0,'W'),(9,8,'kerhwekfhwef','kjhrwjkehfwef',0,'W'),(9,9,'kerhwekfhwef','kjhrwjkehfwef',0,NULL),(9,10,'kerhwekfhwef','kjhrwjkehfwef',0,NULL),(9,11,'kerhwekfhwef','kjhrwjkehfwef',0,NULL),(9,12,'kerhwekfhwef','kjhrwjkehfwef',0,NULL),(9,13,'kerhwekfhwef','kjhrwjkehfwef',0,NULL),(9,14,'kerhwekfhwef','kjhrwjkehfwef',0,NULL),(9,15,'kerhwekfhwef','kjhrwjkehfwef',0,NULL),(9,16,'kerhwekfhwef','kjhrwjkehfwef',0,'kWh'),(9,17,'kerhwekfhwef','kjhrwqwdqwd23e23e2e32e2',0,''),(9,18,'kerhwekfhwef',NULL,0,'');
/*!40000 ALTER TABLE `object` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `series`
--

DROP TABLE IF EXISTS `series`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `series` (
  `cid` int(11) NOT NULL,
  `oid` int(11) NOT NULL,
  `timestamp` bigint(20) NOT NULL,
  `value` double NOT NULL,
  PRIMARY KEY (`cid`,`oid`,`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `series`
--

LOCK TABLES `series` WRITE;
/*!40000 ALTER TABLE `series` DISABLE KEYS */;
INSERT INTO `series` VALUES (1,2,2011,12121.11),(1,2,12123123,45),(1,2,1212123123,0),(1,2,1340726903000,12121.11),(1,2,2539872503000,12121.11);
/*!40000 ALTER TABLE `series` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `token_temp`
--

DROP TABLE IF EXISTS `token_temp`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `token_temp` (
  `code` varchar(100) NOT NULL,
  `clientid` varchar(100) NOT NULL,
  `accesstoken` varchar(100) NOT NULL,
  `refreshtoken` varchar(100) NOT NULL,
  `issuedat` timestamp NULL DEFAULT NULL,
  `expires` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `token_temp`
--

LOCK TABLES `token_temp` WRITE;
/*!40000 ALTER TABLE `token_temp` DISABLE KEYS */;
/*!40000 ALTER TABLE `token_temp` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2012-06-26 17:59:20
